POV-Ray : Newsgroups : povray.general : Spline object: what is it? : Re: Spline object: what is it? Server Time
5 Aug 2024 18:25:52 EDT (-0400)
  Re: Spline object: what is it?  
From: Warp
Date: 17 Sep 2002 22:51:27
Message: <3d87ea2f@news.povray.org>
Jellby <jel### [at] m-softhomenet> wrote:
> Something vaguely related that came to my mind: Is it possible with the 
> current tools to define a sort of hybrid between a lathe and a prism? I 
> mean: in a prism you specify the section with a spline, in a lathe you 
> specify the generatrix (is that the word?) with a spline, what about 
> specifying both? In case it isn't possible (as I guess), wouldn't it be 
> cool to have this kind of objects (lathes with non-circular section / 
> prisms with non-linear sweeps)? Just an idea, though.

  It shouldn't be too difficult to make a macro which creates that kind
of surface as a mesh using the two splines. (It would probably render 10
times faster as a mesh, as well.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.